package com.lavegue.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Area entity. @author MyEclipse Persistence Tools
 */

public class Area implements java.io.Serializable {

	// Fields
	public static final int NO_PARENT = 0;

	private Integer id;
	private Integer parentId;
	private String name;
	private Short lvType;

	public class AreaType {
		// 省或者直辖市
		public static final int PROVINCE = 1;
		// 市
		public static final int CITY = 2;
		// 区
		public static final int AREA = 3;

	}

	// Constructors

	/** default constructor */
	public Area() {
	}

	/** full constructor */
	public Area(Integer parentId, String name, Short lvType) {
		this.parentId = parentId;
		this.name = name;
		this.lvType = lvType;

	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getLvType() {
		return this.lvType;
	}

	public void setLvType(Short lvType) {
		this.lvType = lvType;
	}

}